package com.cgc999.host.api;

import io.reactivex.Observable;

import com.cgc999.host.base.BaseResponse;
import com.cgc999.host.model.CollectionResponse;

import java.util.Map;

import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Path;
import retrofit2.http.QueryMap;

public interface Collection {
    @POST("/lg/collect/add/json")
    Observable<ResponseBody> collection(@QueryMap Map<String, String> map);

    @GET("book/{id}")
    Call<Object> getBook(@Path("id") int id);

    @POST("/user/login")
    Call<ResponseBody> login(@QueryMap Map<String,String> map);
}
